<template>
    <div>
        <br />
        <myheader/>

        <div class="container">

          <div class="item_column">
              <div class="left">   
                  
              </div>

              <div class="right"> 
                  
                  <br />
                  <br />

                  <div>

                    <ul>
                        <li v-for="i in list" :key="i.id">
            
                            <router-link :to="{'name':'createtask',query:{id:i.id}}">{{i.name}}</router-link>
                        </li>
                    </ul>
                </div>
                  
              </div>
            </div>
        </div>
    </div>
</template>

<script>
import myheader from './myheader.vue'
import maxios from '../http/axios'
export default{
    components: {
        'myheader':myheader,
    },
    data () {
        return {
            list:[]
        }
    },

    methods: {
        
        getlist(){

            maxios('/worklist','get').then(res => {

                this.list = res.list

            })

        }
    },
    mounted () {
        this.getlist()
    }
}
</script>

<style>

</style>